/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cetc;

import com.cetc.iframe.BackupAndRestore;
import com.cetc.iframe.GengGaiMiMa;
import com.cetc.iframe.JiaGeTiaoZheng;
import com.cetc.iframe.JinHuoDan;
import com.cetc.iframe.JinHuoTuiHuo;
import com.cetc.iframe.KeHuGuanLi;
import com.cetc.iframe.KuCunPanDian;
import com.cetc.iframe.ShangPinChaXun;
import com.cetc.iframe.ShangPinGuanLi;
import com.cetc.iframe.XiaoShouChaXun;
import com.cetc.iframe.XiaoShouDan;
import com.cetc.iframe.XiaoShouPaiHang;
import com.cetc.iframe.XiaoShouTuiHuo;
import com.cetc.iframe.GysGuanLi;
import com.cetc.iframe.JsrGuanLi;
import com.cetc.login.LoginDialog;
import java.awt.SplashScreen;
import java.awt.event.KeyEvent;
import java.beans.PropertyVetoException;
import java.util.Date;

import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.event.InternalFrameAdapter;
import javax.swing.event.InternalFrameEvent;
import javax.swing.JFrame;

public class Main extends javax.swing.JFrame {

    /**
     * Creates new form Main
     */
    public Main() {
        initComponents();
        JMenu.setMnemonic(KeyEvent.VK_J);
        XMenu.setMnemonic(KeyEvent.VK_X);
        KMenu.setMnemonic(KeyEvent.VK_K);
        CMenu.setMnemonic(KeyEvent.VK_C);
        BMenu.setMnemonic(KeyEvent.VK_B);
        SMenu.setMnemonic(KeyEvent.VK_S);
        WMenu.setMnemonic(KeyEvent.VK_W);
        HMenu.setMnemonic(KeyEvent.VK_H);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        frameContentPane = new javax.swing.JPanel();
        statePanel = new javax.swing.JPanel();
        stateLabel = new javax.swing.JLabel();
        nowDateLabel = new javax.swing.JLabel();
        nameLabel = new javax.swing.JLabel();
        czyStateLabel = new javax.swing.JLabel();
        jSeparator = new javax.swing.JSeparator();
        jSeparator5 = new javax.swing.JSeparator();
        jSeparator6 = new javax.swing.JSeparator();
        toolBar = new javax.swing.JToolBar();
        JHD = new javax.swing.JButton();
        XSD = new javax.swing.JButton();
        KC = new javax.swing.JButton();
        JGTZ = new javax.swing.JButton();
        SPCX = new javax.swing.JButton();
        SPZL = new javax.swing.JButton();
        KHZL = new javax.swing.JButton();
        GYSZL = new javax.swing.JButton();
        TCXT = new javax.swing.JButton();
        desktopPane = new javax.swing.JDesktopPane();
        desktopLabel = new javax.swing.JLabel();
        MenuBar = new javax.swing.JMenuBar();
        JMenu = new javax.swing.JMenu();
        JHDItem = new javax.swing.JMenuItem();
        JHTHItem = new javax.swing.JMenuItem();
        XMenu = new javax.swing.JMenu();
        XSDItem = new javax.swing.JMenuItem();
        XSTHItem = new javax.swing.JMenuItem();
        KMenu = new javax.swing.JMenu();
        KCItem = new javax.swing.JMenuItem();
        JGTZItem = new javax.swing.JMenuItem();
        CMenu = new javax.swing.JMenu();
        XSCXItem = new javax.swing.JMenuItem();
        SPCXItem = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        XSPHItem = new javax.swing.JMenuItem();
        BMenu = new javax.swing.JMenu();
        SPZLItem = new javax.swing.JMenuItem();
        KHZLItem = new javax.swing.JMenuItem();
        GYSZLItem = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        JSRSZItem = new javax.swing.JMenuItem();
        SMenu = new javax.swing.JMenu();
        BAR = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        MMXG = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        TCXTItem = new javax.swing.JMenuItem();
        WMenu = new javax.swing.JMenu();
        CKCDItem = new javax.swing.JMenuItem();
        QBGBItem = new javax.swing.JMenuItem();
        QBZXHItem = new javax.swing.JMenuItem();
        QBHYItem = new javax.swing.JMenuItem();
        HMenu = new javax.swing.JMenu();
        GYItem = new javax.swing.JMenuItem();
        JSZCItem = new javax.swing.JMenuItem();
        JSWZItem = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("弦歌企业进销存管理系统");

        frameContentPane.setLayout(new java.awt.BorderLayout());

        statePanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        statePanel.setPreferredSize(new java.awt.Dimension(800, 20));
        statePanel.setLayout(new java.awt.GridBagLayout());

        stateLabel.setText("当前没有选定窗体");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        statePanel.add(stateLabel, gridBagConstraints);

        nowDateLabel.setText(String.format("%tF", new Date()));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        statePanel.add(nowDateLabel, gridBagConstraints);

        nameLabel.setText("南京弦歌信息科技有限公司");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 7;
        gridBagConstraints.gridy = 0;
        statePanel.add(nameLabel, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 0;
        statePanel.add(czyStateLabel, gridBagConstraints);

        jSeparator.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        statePanel.add(jSeparator, gridBagConstraints);

        jSeparator5.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        statePanel.add(jSeparator5, gridBagConstraints);

        jSeparator6.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        statePanel.add(jSeparator6, gridBagConstraints);

        frameContentPane.add(statePanel, java.awt.BorderLayout.SOUTH);

        toolBar.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        toolBar.setRollover(true);
        toolBar.setPreferredSize(new java.awt.Dimension(800, 20));

        JHD.setText("进货单");
        JHD.setToolTipText("进货单");
        JHD.setFocusable(false);
        JHD.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        JHD.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        JHD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JHDActionPerformed(evt);
            }
        });
        toolBar.add(JHD);

        XSD.setText("销售单");
        XSD.setToolTipText("销售单");
        XSD.setFocusable(false);
        XSD.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        XSD.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        XSD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                XSDActionPerformed(evt);
            }
        });
        toolBar.add(XSD);

        KC.setText("库存盘点");
        KC.setToolTipText("库存盘点");
        KC.setFocusable(false);
        KC.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        KC.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        KC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                KCActionPerformed(evt);
            }
        });
        toolBar.add(KC);

        JGTZ.setText("价格调整");
        JGTZ.setToolTipText("价格调整");
        JGTZ.setFocusable(false);
        JGTZ.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        JGTZ.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        JGTZ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JGTZActionPerformed(evt);
            }
        });
        toolBar.add(JGTZ);

        SPCX.setText("商品查询");
        SPCX.setToolTipText("商品查询");
        SPCX.setFocusable(false);
        SPCX.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        SPCX.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SPCX.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SPCXActionPerformed(evt);
            }
        });
        toolBar.add(SPCX);

        SPZL.setText("商品资料管理");
        SPZL.setToolTipText("商品资料管理");
        SPZL.setFocusable(false);
        SPZL.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        SPZL.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        SPZL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SPZLActionPerformed(evt);
            }
        });
        toolBar.add(SPZL);

        KHZL.setText("客户资料管理");
        KHZL.setToolTipText("客户资料管理");
        KHZL.setFocusable(false);
        KHZL.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        KHZL.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        KHZL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                KHZLActionPerformed(evt);
            }
        });
        toolBar.add(KHZL);

        GYSZL.setText("供应商资料管理");
        GYSZL.setToolTipText("供应商资料管理");
        GYSZL.setFocusable(false);
        GYSZL.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        GYSZL.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        GYSZL.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                GYSZLActionPerformed(evt);
            }
        });
        toolBar.add(GYSZL);

        TCXT.setText("退出系统");
        TCXT.setToolTipText("退出系统");
        TCXT.setFocusable(false);
        TCXT.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        TCXT.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        TCXT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TCXTActionPerformed(evt);
            }
        });
        toolBar.add(TCXT);

        frameContentPane.add(toolBar, java.awt.BorderLayout.NORTH);

        desktopLabel.setAlignmentY(0.0F);
        desktopLabel.setAutoscrolls(true);
        desktopLabel.setIconTextGap(0);
        desktopLabel.setOpaque(true);

        desktopPane.setLayer(desktopLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout desktopPaneLayout = new javax.swing.GroupLayout(desktopPane);
        desktopPane.setLayout(desktopPaneLayout);
        desktopPaneLayout.setHorizontalGroup(
            desktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 794, Short.MAX_VALUE)
        );
        desktopPaneLayout.setVerticalGroup(
            desktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, desktopPaneLayout.createSequentialGroup()
                .addGap(0, 9, Short.MAX_VALUE)
                .addComponent(desktopLabel))
        );

        frameContentPane.add(desktopPane, java.awt.BorderLayout.CENTER);

        MenuBar.setPreferredSize(new java.awt.Dimension(566, 20));

        JMenu.setText("进货管理(J)");

        JHDItem.setText("进货单");
        JHDItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JHDItemActionPerformed(evt);
            }
        });
        JMenu.add(JHDItem);

        JHTHItem.setText("进货退货");
        JHTHItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JHTHItemActionPerformed(evt);
            }
        });
        JMenu.add(JHTHItem);

        MenuBar.add(JMenu);

        XMenu.setText("销售管理(X)");

        XSDItem.setText("销售单");
        XSDItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                XSDItemActionPerformed(evt);
            }
        });
        XMenu.add(XSDItem);

        XSTHItem.setText("销售退货");
        XSTHItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                XSTHItemActionPerformed(evt);
            }
        });
        XMenu.add(XSTHItem);

        MenuBar.add(XMenu);

        KMenu.setText("库存管理(K)");

        KCItem.setText("库存盘点");
        KCItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                KCItemActionPerformed(evt);
            }
        });
        KMenu.add(KCItem);

        JGTZItem.setText("价格调整");
        JGTZItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JGTZItemActionPerformed(evt);
            }
        });
        KMenu.add(JGTZItem);

        MenuBar.add(KMenu);

        CMenu.setText("信息查询(C)");

        XSCXItem.setText("销售查询");
        XSCXItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                XSCXItemActionPerformed(evt);
            }
        });
        CMenu.add(XSCXItem);

        SPCXItem.setText("商品查询");
        SPCXItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SPCXItemActionPerformed(evt);
            }
        });
        CMenu.add(SPCXItem);
        CMenu.add(jSeparator1);

        XSPHItem.setText("销售排行");
        XSPHItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                XSPHItemActionPerformed(evt);
            }
        });
        CMenu.add(XSPHItem);

        MenuBar.add(CMenu);

        BMenu.setText("基本资料(B)");

        SPZLItem.setText("商品资料管理");
        SPZLItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SPZLItemActionPerformed(evt);
            }
        });
        BMenu.add(SPZLItem);

        KHZLItem.setText("客户资料管理");
        KHZLItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                KHZLItemActionPerformed(evt);
            }
        });
        BMenu.add(KHZLItem);

        GYSZLItem.setText("供应商资料管理");
        GYSZLItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                GYSZLItemActionPerformed(evt);
            }
        });
        BMenu.add(GYSZLItem);
        BMenu.add(jSeparator2);

        JSRSZItem.setText("经手人设置");
        JSRSZItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JSRSZItemActionPerformed(evt);
            }
        });
        BMenu.add(JSRSZItem);

        MenuBar.add(BMenu);

        SMenu.setText("系统维护(S)");

        BAR.setText("数据库备份与恢复");
        BAR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BARActionPerformed(evt);
            }
        });
        SMenu.add(BAR);
        SMenu.add(jSeparator3);

        MMXG.setText("密码修改");
        MMXG.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MMXGActionPerformed(evt);
            }
        });
        SMenu.add(MMXG);
        SMenu.add(jSeparator4);

        TCXTItem.setText("退出系统");
        TCXTItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                TCXTItemActionPerformed(evt);
            }
        });
        SMenu.add(TCXTItem);

        MenuBar.add(SMenu);

        WMenu.setText("窗口(W)");

        CKCDItem.setText("窗口层叠");
        CKCDItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CKCDItemActionPerformed(evt);
            }
        });
        WMenu.add(CKCDItem);

        QBGBItem.setText("全部关闭");
        QBGBItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                QBGBItemActionPerformed(evt);
            }
        });
        WMenu.add(QBGBItem);

        QBZXHItem.setText("全部最小化");
        QBZXHItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                QBZXHItemActionPerformed(evt);
            }
        });
        WMenu.add(QBZXHItem);

        QBHYItem.setText("全部还原");
        QBHYItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                QBHYItemActionPerformed(evt);
            }
        });
        WMenu.add(QBHYItem);

        MenuBar.add(WMenu);

        HMenu.setText("帮助(H)");

        GYItem.setText("关于");
        HMenu.add(GYItem);

        JSZCItem.setText("联系技术支持");
        JSZCItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JSZCItemActionPerformed(evt);
            }
        });
        HMenu.add(JSZCItem);

        JSWZItem.setText("访问技术网站");
        HMenu.add(JSWZItem);

        MenuBar.add(HMenu);

        setJMenuBar(MenuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(frameContentPane, javax.swing.GroupLayout.DEFAULT_SIZE, 794, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(frameContentPane, javax.swing.GroupLayout.DEFAULT_SIZE, 549, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void JHDItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JHDItemActionPerformed
        // TODO add your handling code here:
        JinHuoDan jinhuodan = new JinHuoDan();
        jinhuodan.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(jinhuodan);
        jinhuodan.setResizable(false);
	jinhuodan.setMaximizable(false);
        jinhuodan.setVisible(true);
        stateLabel.setText(jinhuodan.getTitle());
        jinhuodan.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(jinhuodan.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_JHDItemActionPerformed

    private void JHTHItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JHTHItemActionPerformed
        // TODO add your handling code here:
        JinHuoTuiHuo jinhuotuihuo = new JinHuoTuiHuo();
        jinhuotuihuo.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(jinhuotuihuo);
        jinhuotuihuo.setResizable(false);
	jinhuotuihuo.setMaximizable(false);
        jinhuotuihuo.setVisible(true);
        stateLabel.setText(jinhuotuihuo.getTitle());
        jinhuotuihuo.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(jinhuotuihuo.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_JHTHItemActionPerformed

    private void XSDItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_XSDItemActionPerformed
        // TODO add your handling code here:
        XiaoShouDan xiaoshoudan = new XiaoShouDan();
        xiaoshoudan.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(xiaoshoudan);
        xiaoshoudan.setResizable(false);
	xiaoshoudan.setMaximizable(false);
        xiaoshoudan.setVisible(true);
        stateLabel.setText(xiaoshoudan.getTitle());
        xiaoshoudan.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(xiaoshoudan.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_XSDItemActionPerformed

    private void JGTZItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JGTZItemActionPerformed
        // TODO add your handling code here:
        JiaGeTiaoZheng jiagetiaozheng = new JiaGeTiaoZheng();
        jiagetiaozheng.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(jiagetiaozheng);
        jiagetiaozheng.setResizable(false);
	jiagetiaozheng.setMaximizable(false);
        jiagetiaozheng.setVisible(true);
        stateLabel.setText(jiagetiaozheng.getTitle());
        jiagetiaozheng.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(jiagetiaozheng.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_JGTZItemActionPerformed

    private void XSCXItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_XSCXItemActionPerformed
        // TODO add your handling code here:
        XiaoShouChaXun xiaoshouchaxun = new XiaoShouChaXun();
        xiaoshouchaxun.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(xiaoshouchaxun);
        xiaoshouchaxun.setResizable(false);
	xiaoshouchaxun.setMaximizable(false);
        xiaoshouchaxun.setVisible(true);
        stateLabel.setText(xiaoshouchaxun.getTitle());
        xiaoshouchaxun.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(xiaoshouchaxun.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_XSCXItemActionPerformed

    private void XSPHItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_XSPHItemActionPerformed
        // TODO add your handling code here:
        XiaoShouPaiHang xiaoshoupaihang = new XiaoShouPaiHang();
        xiaoshoupaihang.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(xiaoshoupaihang);
        xiaoshoupaihang.setResizable(false);
	xiaoshoupaihang.setMaximizable(false);
        xiaoshoupaihang.setVisible(true);
        stateLabel.setText(xiaoshoupaihang.getTitle());
        xiaoshoupaihang.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(xiaoshoupaihang.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_XSPHItemActionPerformed

    private void CKCDItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CKCDItemActionPerformed
        // TODO add your handling code here:
        JInternalFrame[] allFrames = desktopPane.getAllFrames();
        int x = 0, y = 0;
        for (JInternalFrame iFrame : allFrames) {
                iFrame.setLocation(x, y);
                try {
                        iFrame.setSelected(true);
                } catch (PropertyVetoException e1) {
                        e1.printStackTrace();
                }
                int frameH = iFrame.getPreferredSize().height;
                int panelH = iFrame.getContentPane().getPreferredSize().height;
                int fSpacing = frameH - panelH;
                x += fSpacing;
                y += fSpacing;
                if (x + getWidth() / 2 > desktopPane.getWidth())
                        x = 0;
                if (y + getHeight() / 2 > desktopPane.getHeight())
                        y = 0;
        }
    }//GEN-LAST:event_CKCDItemActionPerformed

    private void JSZCItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JSZCItemActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_JSZCItemActionPerformed

    private void JHDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JHDActionPerformed
        // TODO add your handling code here:
        JinHuoDan jinhuodan = new JinHuoDan();
        jinhuodan.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(jinhuodan);
        jinhuodan.setResizable(false);
	jinhuodan.setMaximizable(false);
        jinhuodan.setVisible(true);
        stateLabel.setText(jinhuodan.getTitle());
        jinhuodan.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(jinhuodan.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_JHDActionPerformed

    private void XSDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_XSDActionPerformed
        // TODO add your handling code here:
        XiaoShouDan xiaoshoudan = new XiaoShouDan();
        xiaoshoudan.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(xiaoshoudan);
        xiaoshoudan.setResizable(false);
	xiaoshoudan.setMaximizable(false);
        xiaoshoudan.setVisible(true);
        stateLabel.setText(xiaoshoudan.getTitle());
        xiaoshoudan.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(xiaoshoudan.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_XSDActionPerformed

    private void XSTHItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_XSTHItemActionPerformed
        // TODO add your handling code here:
        XiaoShouTuiHuo xiaoshoutuihuo = new XiaoShouTuiHuo();
        xiaoshoutuihuo.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(xiaoshoutuihuo);
        xiaoshoutuihuo.setResizable(false);
	xiaoshoutuihuo.setMaximizable(false);
        xiaoshoutuihuo.setVisible(true);
        stateLabel.setText(xiaoshoutuihuo.getTitle());
        xiaoshoutuihuo.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(xiaoshoutuihuo.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_XSTHItemActionPerformed

    private void KCItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_KCItemActionPerformed
        // TODO add your handling code here:
        KuCunPanDian kucunpandian = new KuCunPanDian();
        kucunpandian.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(kucunpandian);
        kucunpandian.setResizable(false);
	kucunpandian.setMaximizable(false);
        kucunpandian.setVisible(true);
        stateLabel.setText(kucunpandian.getTitle());
        kucunpandian.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(kucunpandian.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_KCItemActionPerformed

    private void KCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_KCActionPerformed
        // TODO add your handling code here:
        KuCunPanDian kucunpandian = new KuCunPanDian();
        kucunpandian.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(kucunpandian);
        kucunpandian.setResizable(false);
	kucunpandian.setMaximizable(false);
        kucunpandian.setVisible(true);
        stateLabel.setText(kucunpandian.getTitle());
        kucunpandian.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(kucunpandian.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_KCActionPerformed

    private void JGTZActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JGTZActionPerformed
        // TODO add your handling code here:
        JiaGeTiaoZheng jiagetiaozheng = new JiaGeTiaoZheng();
        jiagetiaozheng.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(jiagetiaozheng);
        jiagetiaozheng.setResizable(false);
	jiagetiaozheng.setMaximizable(false);
        jiagetiaozheng.setVisible(true);
        stateLabel.setText(jiagetiaozheng.getTitle());
        jiagetiaozheng.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(jiagetiaozheng.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_JGTZActionPerformed

    private void SPCXItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SPCXItemActionPerformed
        // TODO add your handling code here:
        ShangPinChaXun shangpinchaxun = new ShangPinChaXun();
        shangpinchaxun.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(shangpinchaxun);
        shangpinchaxun.setResizable(false);
	shangpinchaxun.setMaximizable(false);
        shangpinchaxun.setVisible(true);
        stateLabel.setText(shangpinchaxun.getTitle());
        shangpinchaxun.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(shangpinchaxun.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_SPCXItemActionPerformed

    private void SPCXActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SPCXActionPerformed
        // TODO add your handling code here:
        ShangPinChaXun shangpinchaxun = new ShangPinChaXun();
        shangpinchaxun.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(shangpinchaxun);
        shangpinchaxun.setResizable(false);
	shangpinchaxun.setMaximizable(false);
        shangpinchaxun.setVisible(true);
        stateLabel.setText(shangpinchaxun.getTitle());
        shangpinchaxun.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(shangpinchaxun.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_SPCXActionPerformed

    private void SPZLItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SPZLItemActionPerformed
        // TODO add your handling code here:
        ShangPinGuanLi shangpinguanli = new ShangPinGuanLi();
        shangpinguanli.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(shangpinguanli);
        shangpinguanli.setResizable(false);
	shangpinguanli.setMaximizable(false);
        shangpinguanli.setVisible(true);
        stateLabel.setText(shangpinguanli.getTitle());
        shangpinguanli.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(shangpinguanli.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_SPZLItemActionPerformed

    private void SPZLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SPZLActionPerformed
        // TODO add your handling code here:
        ShangPinGuanLi shangpinguanli = new ShangPinGuanLi();
        shangpinguanli.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(shangpinguanli);
        shangpinguanli.setResizable(false);
	shangpinguanli.setMaximizable(false);
        shangpinguanli.setVisible(true);
        stateLabel.setText(shangpinguanli.getTitle());
        shangpinguanli.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(shangpinguanli.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_SPZLActionPerformed

    private void KHZLItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_KHZLItemActionPerformed
        // TODO add your handling code here:
        KeHuGuanLi kehuguanli = new KeHuGuanLi();
        kehuguanli.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(kehuguanli);
        kehuguanli.setResizable(false);
	kehuguanli.setMaximizable(false);
        kehuguanli.setVisible(true);
        stateLabel.setText(kehuguanli.getTitle());
        kehuguanli.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(kehuguanli.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_KHZLItemActionPerformed

    private void KHZLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_KHZLActionPerformed
        // TODO add your handling code here:
        KeHuGuanLi kehuguanli = new KeHuGuanLi();
        kehuguanli.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(kehuguanli);
        kehuguanli.setResizable(false);
	kehuguanli.setMaximizable(false);
        kehuguanli.setVisible(true);
        stateLabel.setText(kehuguanli.getTitle());
        kehuguanli.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(kehuguanli.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_KHZLActionPerformed

    private void GYSZLItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_GYSZLItemActionPerformed
        // TODO add your handling code here:
        GysGuanLi gysguanli = new GysGuanLi();
        gysguanli.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(gysguanli);
        gysguanli.setResizable(false);
	gysguanli.setMaximizable(false);
        gysguanli.setVisible(true);
        stateLabel.setText(gysguanli.getTitle());
        gysguanli.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(gysguanli.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_GYSZLItemActionPerformed

    private void GYSZLActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_GYSZLActionPerformed
        // TODO add your handling code here:
        GysGuanLi gysguanli = new GysGuanLi();
        gysguanli.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(gysguanli);
        gysguanli.setResizable(false);
	gysguanli.setMaximizable(false);
        gysguanli.setVisible(true);
        stateLabel.setText(gysguanli.getTitle());
        gysguanli.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(gysguanli.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_GYSZLActionPerformed

    private void JSRSZItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JSRSZItemActionPerformed
        // TODO add your handling code here:
        JsrGuanLi jsrguanli = new JsrGuanLi();
        jsrguanli.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(jsrguanli);
        jsrguanli.setResizable(false);
	jsrguanli.setMaximizable(false);
        jsrguanli.setVisible(true);
        stateLabel.setText(jsrguanli.getTitle());
        jsrguanli.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(jsrguanli.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_JSRSZItemActionPerformed

    private void BARActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BARActionPerformed
        // TODO add your handling code here:
        BackupAndRestore bar = new BackupAndRestore();
        bar.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(bar);
        bar.setResizable(false);
	bar.setMaximizable(false);
        bar.setVisible(true);
        stateLabel.setText(bar.getTitle());
        bar.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(bar.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_BARActionPerformed

    private void MMXGActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MMXGActionPerformed
        // TODO add your handling code here:
        GengGaiMiMa ggmm = new GengGaiMiMa();
        ggmm.setFrameIcon(JHDItem.getIcon());
        desktopPane.add(ggmm);
        ggmm.setResizable(false);
	ggmm.setMaximizable(false);
        ggmm.setVisible(true);
        stateLabel.setText(ggmm.getTitle());
        ggmm.addInternalFrameListener(new InternalFrameAdapter() {
			public void internalFrameActivated(InternalFrameEvent e) {
				super.internalFrameActivated(e);
				stateLabel.setText(ggmm.getTitle());
			}

			public void internalFrameDeactivated(InternalFrameEvent e) {
				stateLabel.setText("没有选择窗体");
			}
		});
    }//GEN-LAST:event_MMXGActionPerformed

    private void TCXTItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TCXTItemActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_TCXTItemActionPerformed

    private void TCXTActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_TCXTActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_TCXTActionPerformed

    private void QBGBItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_QBGBItemActionPerformed
        // TODO add your handling code here:
        JInternalFrame[] allFrames = desktopPane.getAllFrames();
        for (JInternalFrame frame : allFrames) {
                frame.doDefaultCloseAction();
        }
    }//GEN-LAST:event_QBGBItemActionPerformed

    private void QBZXHItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_QBZXHItemActionPerformed
        // TODO add your handling code here:
        JInternalFrame[] allFrames = desktopPane.getAllFrames();
        for (JInternalFrame frame : allFrames) {
                try {
                        frame.setIcon(true);
                } catch (PropertyVetoException e1) {
                        e1.printStackTrace();
                }
        }
    }//GEN-LAST:event_QBZXHItemActionPerformed

    private void QBHYItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_QBHYItemActionPerformed
        // TODO add your handling code here:
        JInternalFrame[] allFrames = desktopPane.getAllFrames();
        for (JInternalFrame frame : allFrames) {
                try {
                        frame.setIcon(false);
                } catch (PropertyVetoException e1) {
                        e1.printStackTrace();
                }
        }
    }//GEN-LAST:event_QBHYItemActionPerformed

    public void setCzyStateLabel(String str) {
        czyStateLabel.setText(str);
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /* Create and display the form */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//            public void run() {
//                new Main().setVisible(true);
//            }
//        });
        SplashScreen splashScreen = SplashScreen.getSplashScreen();//创建闪现屏幕对象
        JFrame login = new LoginDialog();
        if (splashScreen != null) {
            try {
                login.setDefaultCloseOperation(EXIT_ON_CLOSE);
                Thread.sleep(3000);
            } catch (InterruptedException ex) {
                ex.printStackTrace();
            }
        }
        login.setVisible(true);
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem BAR;
    private javax.swing.JMenu BMenu;
    private javax.swing.JMenuItem CKCDItem;
    private javax.swing.JMenu CMenu;
    private javax.swing.JMenuItem GYItem;
    private javax.swing.JButton GYSZL;
    private javax.swing.JMenuItem GYSZLItem;
    private javax.swing.JMenu HMenu;
    private javax.swing.JButton JGTZ;
    private javax.swing.JMenuItem JGTZItem;
    private javax.swing.JButton JHD;
    private javax.swing.JMenuItem JHDItem;
    private javax.swing.JMenuItem JHTHItem;
    private javax.swing.JMenu JMenu;
    private javax.swing.JMenuItem JSRSZItem;
    private javax.swing.JMenuItem JSWZItem;
    private javax.swing.JMenuItem JSZCItem;
    private javax.swing.JButton KC;
    private javax.swing.JMenuItem KCItem;
    private javax.swing.JButton KHZL;
    private javax.swing.JMenuItem KHZLItem;
    private javax.swing.JMenu KMenu;
    private javax.swing.JMenuItem MMXG;
    private javax.swing.JMenuBar MenuBar;
    private javax.swing.JMenuItem QBGBItem;
    private javax.swing.JMenuItem QBHYItem;
    private javax.swing.JMenuItem QBZXHItem;
    private javax.swing.JMenu SMenu;
    private javax.swing.JButton SPCX;
    private javax.swing.JMenuItem SPCXItem;
    private javax.swing.JButton SPZL;
    private javax.swing.JMenuItem SPZLItem;
    private javax.swing.JButton TCXT;
    private javax.swing.JMenuItem TCXTItem;
    private javax.swing.JMenu WMenu;
    private javax.swing.JMenu XMenu;
    private javax.swing.JMenuItem XSCXItem;
    private javax.swing.JButton XSD;
    private javax.swing.JMenuItem XSDItem;
    private javax.swing.JMenuItem XSPHItem;
    private javax.swing.JMenuItem XSTHItem;
    public static javax.swing.JLabel czyStateLabel;
    private javax.swing.JLabel desktopLabel;
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JPanel frameContentPane;
    private javax.swing.JSeparator jSeparator;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JLabel nameLabel;
    private javax.swing.JLabel nowDateLabel;
    private javax.swing.JLabel stateLabel;
    private javax.swing.JPanel statePanel;
    private javax.swing.JToolBar toolBar;
    // End of variables declaration//GEN-END:variables
}
